package com.hqully.smartfumehood.service;

import com.github.pagehelper.PageInfo;
import com.hqully.smartfumehood.common.vo.QueryVo;
import com.hqully.smartfumehood.entity.AirData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p> 
 *     针对表【air_data】的数据库操作Service
 * </p> 
 * @author liulingyu
 * @date 2022-06-24 10:30
 * @version 1.0
 */
public interface AirDataService extends IService<AirData> {

    /**
     * <p>
     *     添加空气数据
     * </p>
     * @date 2022/7/1 15:58 <br>
     * @author liulingyu <br>
     * @param airData 空气数据实体类
     * @return {@link int}
     */
    int addAirData(AirData airData);

    PageInfo<AirData> findAllAirDataByAPIdAndAirId(QueryVo queryVo);

    /**
     * <p>
     *     根据空气传感器id查询空气传感器数据
     * </p>
     * @date 2022/7/1 13:31 <br>
     * @author liulingyu <br>
     * @param queryVo 包含空气传感器id airId
     * @return {@link PageInfo< AirData>} 空气传感器数据列表
     */
    PageInfo<AirData> findAllAirDataByAirId(QueryVo queryVo);

}
